package com.chuyangc.qdms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author 欧楚杨
 * @TableName logrec
 */
@TableName(value ="logrec")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(value = "日志实体类")
public class Logrec implements Serializable {
    /**
     * ID标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID标识")
    private Integer id;

    /**
     * 时间
     */
    @TableField(value = "time")
    @ApiModelProperty(value = "时间")
    private Date time;

    /**
     * 地点
     */
    @TableField(value = "address")
    @ApiModelProperty(value = "地点")
    private String address;

    /**
     * 状态
     */
    @TableField(value = "type")
    @ApiModelProperty(value = "状态")
    private Integer type;
    // 状态常量
    public static final int GATHER=1;//"采集"
    public static final int MATHCH=2;//"匹配";

    /**
     * 登录用户名
     */
    @TableField(value = "user")
    @ApiModelProperty(value = "登录用户名")
    private String user;

    /**
     * 登录用户主机IP地址
     */
    @TableField(value = "ip")
    @ApiModelProperty(value = "登录用户主机IP地址")
    private String ip;

    /**
     * 登录状态：登录、登出
     */
    @TableField(value = "logType")
    @ApiModelProperty(value = "登录状态")
    private Integer logtype;

    /**
     * 登录常量LOG_IN、登出常量常量LOG_OUT
     */
    public static final int LOG_IN=1;
    public static final int LOG_OUT=0;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}